const XLSX = require('xlsx');
const fs = require('fs');

const workbook = XLSX.readFile('./data/装备库.xlsx');
const sheetName = workbook.SheetNames[0];
const sheet = workbook.Sheets[sheetName];
// 逐行读取
const data = XLSX.utils.sheet_to_json(sheet);
fs.writeFileSync('./data/equipment.json', JSON.stringify(data, null, 2));